let fs = require('fs')
class Bundle{
    constructor({entry}){
        this.entry = entry;//入口文件的路径
        this.modules = {};//存放着所有的模块
    }
    build(filename){
        let entryModule =  this.fetchModule(this.entry)
    }
    fetchModule(modulePath){
        if (modulePath){
            let sourceCode = fs.readFileSync(modulePath,'utf8');
            const module = new Module({
                
            })
        }
    }
}

module.exports = Bundle;